import instance from "@/axios";

//加载角色列表
export const  roleList = ()=> instance.get('/role/list')

//角色分页
export const  rolePage=(searchParam)=> instance.post('/role/page', searchParam)

export const  addRoal=(roleForm)=> instance.post('/role/addRoal', roleForm)

export const  editRoal=(roleForm)=> instance.put('/role/editRoal', roleForm)

export const  deleteRoal=(id) =>instance.delete('/role/deleteRoal/'+ id)

export const  getRoleById=(rid) =>instance.get('/role/getRoleById/'+ rid)

export const  editRolePermissions=(rolePermissions) =>instance.put('/role/editRolePermissions',rolePermissions)